﻿namespace Shop.Model.View.Admin.Order;

public class OrderDetailsVo
{
    /// <summary>
    /// 订单ID
    /// </summary>
    public long Id { get; set; }
    
    /// <summary>
    /// 订单Code
    /// </summary>
    public string Code { get; set; }
    
    /// <summary>
    /// 下单人ID
    /// </summary>
    public int UserId { get; set; }
    
    /// <summary>
    /// 下单人昵称
    /// </summary>
    public string UserName { get; set; }
    
    /// <summary>
    /// 下单人手机号
    /// </summary>
    public string UserTele { get; set; }
    
    /// <summary>
    /// 下单人级别
    /// </summary>
    public int UserGrade { get; set; }
    
    /// <summary>
    /// 收货人姓名
    /// </summary>
    public string ConsigneeName { get; set; }
    
    /// <summary>
    /// 收货人手机号
    /// </summary>
    public string ConsigneePhone { get; set; }
    
    /// <summary>
    /// 订单总价
    /// </summary>
    public decimal OrderAmount { get; set; }
    
    /// <summary>
    /// 订单状态
    /// -1取消
    /// 1未付款
    /// 2已付款
    /// 3已发货
    /// 4已签收
    /// 5已评价
    /// </summary>
    public int OrderStatus { get; set; }
    
    /// <summary>
    /// 创建时间
    /// </summary>
    public DateTime CreateTime { get; set; }
    
    /// <summary>
    /// 支付时间
    /// </summary>
    public DateTime? PayTime { get; set; }
    
    /// <summary>
    /// 发货时间
    /// </summary>
    public DateTime? DeliveryTime { get; set; }
    
    /// <summary>
    /// 订单类型
    /// 1、普通
    /// 2、升级
    /// </summary>
    public int OrderType { get; set; }
    
    public string ConsigneeAddress { get; set; }
    
    public List<OrdGoods> OrdGood { get; set; }
    
    public List<OrdCommissionList> OrdCommission { get; set; }
}

public class OrdGoods
{
    /// <summary>
    /// 商品图片
    /// </summary>
    public string GImg { get; set; }

    /// <summary>
    /// 商品名称
    /// </summary>
    public string GName { get; set; }

    /// <summary>
    /// 商品规格名称
    /// </summary>
    public string GSName { get; set; }

    /// <summary>
    /// 商品数量
    /// </summary>
    public int GCount { get; set; }

    /// <summary>
    /// 商品单价
    /// </summary>
    public decimal GPrice { get; set; }
    
    /// <summary>
    /// 是否赠品
    /// </summary>
    public bool IsGift { get; set; }
    
    /// <summary>
    /// 物流单号
    /// </summary>
    public string? LogisticsNo { get; set; }
}
/// <summary>
/// 返佣信息
/// </summary>
public class OrdCommissionList
{
    /// <summary>
    /// 返佣用户Id
    /// </summary>
    public int CId { get; set; }
    
    /// <summary>
    /// 返佣用户昵称
    /// </summary>
    public string CName { get; set; }
    
    /// <summary>
    /// 返佣用户手机号
    /// </summary>
    public string CTele { get; set; }
    
    /// <summary>
    /// 返佣金额
    /// </summary>
    public decimal Amount { get; set; }
    
    /// <summary>
    /// 返佣状态
    /// </summary>
    public string State { get; set; }
    
    /// <summary>
    /// 类型
    /// </summary>
    public string Action { get; set; }
}